package request

type UserIdentity struct {
	RealName       string `json:"realName" form:"realName" gorm:"column:real_name;comment:真实姓名;size:100;"`
	PhoneNumber    string `json:"phoneNumber" form:"phoneNumber" gorm:"column:phone_number;comment:手机号;size:20;"`
	DocumentType   string `json:"documentType" form:"documentType" gorm:"column:document_type;comment:证件类型;size:50;"`
	DocumentNumber string `json:"documentNumber" form:"documentNumber" gorm:"column:document_number;comment:证件号;size:100;unique;"`
}

// TableName 自定义表名
func (UserIdentity) TableName() string {
	return "user_identities"
}
